package com.tengju.user.application.csa.dto;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "ClubCustomerServiceForm", description = "后台操作俱乐部客服请求参数对象")
@NoArgsConstructor
public class GenSecCustomerServiceForm implements Serializable {

    @ApiModelProperty(value = "俱乐部id")
    @NotNull(message = "secIdCode不能为空")
    private Long secIdCode;

    @ApiModelProperty(value = "客服名称")
    private String csaName;

    @ApiModelProperty(value = "客服微信号")
    private String csaWeChat;

    @ApiModelProperty(value = "客服头像")
    private String headImage;

    @ApiModelProperty(value = "客服工作类型")
    private Integer workDateType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "客服工作开始时间")
    private LocalDateTime startWorkTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "客服工作结束时间")
    private LocalDateTime endWorkTime;

    @JSONField
    @ApiModelProperty(value = "客服打招呼语")
    private JSONArray customerServiceGreetJson;

}
